<?php /* Smarty version 2.6.20, created on 2017-08-06 22:12:04
         compiled from product_detail.htm */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'product_detail.htm', 23, false),)), $this); ?>
<body>
<link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/ycxq.css" rel="stylesheet" />
<header>
    <div class="header_top sys_header">
        <div class="st_back"><a href="javascript:;" onclick="javascript:history.go(-1);"></a></div>
        <h1 class="tit">票品详情</h1>
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "detail_header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    </div>
</header>

<div class="ub  content">
            <div class="ub ccont">
                <div class="ub ub-ac umar-at contleft">
                    <img id="img_pic" src="<?php echo $this->_tpl_vars['de']['pic']; ?>
" alt="<?php echo $this->_tpl_vars['de']['ftitle']; ?>
" style="border-width:0px;">
                </div>
                <div class="ub  umar-at ub-ver  ub-f1 contright">
                    <div class="ub ub-ac ctitle">
                        <span ><?php echo $this->_tpl_vars['de']['pname']; ?>
</span>
                    </div>
                    
                    <div class="ub cfont">
                        时间:
                    <span><?php echo ((is_array($_tmp=$this->_tpl_vars['de']['performance_start_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d") : smarty_modifier_date_format($_tmp, "%Y-%m-%d")); ?>
</span>
                    </div>
                    <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=spot&s=detail&id=<?php echo $this->_tpl_vars['de']['spot_detail']['id']; ?>
">

                       <div class="ub  cfont cfontlast">
                        场馆:<span ><?php echo $this->_tpl_vars['de']['spot_detail']['spot_name']; ?>
</span>
                    </div>

                    </a>

                   
                     <div class="ub  cfont price">
                        票价:<?php echo $this->_tpl_vars['de']['price_list']; ?>
元
                    </div>

                        <div class="ub  cfont newtags">
                             <div class="tags">
                                 <?php if ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['reserve_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['sell_time'] || empty ( $this->_tpl_vars['de']['sell_time'] )): ?>
                                 <span class="tag tag-c2">预售中</span>
                                 <?php elseif (! empty ( $this->_tpl_vars['de']['sell_time'] ) && $this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['sell_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['performance_end_time']): ?>
                                 <span class="tag tag-c2">售票中</span>
                                 <?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['performance_end_time']): ?>
                                 <span class="tag tag-c3">已结束</span>
                                 <?php endif; ?>
                                 <?php if (! empty ( $this->_tpl_vars['de']['spot_detail']['seat_m_pic'] )): ?>
                                 <span class="tag tag-c2 zwt_show">座位图</span>
                                 <?php endif; ?>
                                 <?php if ($this->_tpl_vars['de']['is_real_name']): ?>
                                 <span class="tag tag-c1">实名制</span>
                                 <?php endif; ?>
                             </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

    <div>
    <div class="mid_content1">
        <div class="modue_mill" <?php if ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['seckill_time'] || $this->_tpl_vars['de']['is_skill'] != 1): ?> style="display: none;" <?php endif; ?> >
        <div class="mill_name">倒计时</div>
        <div class="mill_time exe_time "  endtime='<?php echo $this->_tpl_vars['de']['seckill_time']; ?>
' lxfday='yes'></div>
        <div class="clean_float"></div>
    </div>

 <?php if (! empty ( $this->_tpl_vars['de']['promotion_list'] )): ?>
  <div class="tuan_cont_list">
                <div class="list_show_box">
          
                  <div class="list_show_con">
                     
                      <?php $_from = $this->_tpl_vars['de']['promotion_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['vo']):
?>
                      <p style=" margin:0px; padding:0px;"><?php echo $this->_tpl_vars['vo']; ?>
</p>
                      <?php endforeach; endif; unset($_from); ?>
                </div>
        </div>
    </div>
  <?php endif; ?>

    <div class="tuan_cont_list">
                <div class="list_show_box">
                    <div class="tit"><strong>演出详情</strong></div>
                  <div class="list_show_con">
                      <?php echo $this->_tpl_vars['de']['detail']; ?>

                </div>
        </div>
    </div>
  <div class="question_ask">
      <span class="title"> <em>在线答疑</em> <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=mobile_question&id=<?php echo $this->_tpl_vars['de']['pid']; ?>
">提交问题</a> <div class="clean_float"></div></span>
      <?php $_from = $this->_tpl_vars['question_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['list']):
?>
      <dl>
          <dt><?php echo $this->_tpl_vars['list']['member_name']; ?>
 ：</dt>
          <dd><?php echo $this->_tpl_vars['list']['question']; ?>
</dd>
          <dd class="date_time"><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['question_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</dd>
      </dl>
      <?php if (! empty ( $this->_tpl_vars['list']['answer'] )): ?>
      <dl class="receivers">
          <dd><?php echo $this->_tpl_vars['list']['answer']; ?>
</dd>
          <dd class="date_time"><?php echo ((is_array($_tmp=$this->_tpl_vars['list']['answer_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
</dd>
      </dl>
      <?php endif; ?>
      <?php endforeach; endif; unset($_from); ?>

  </div>



  <div class="bom_fixed">
      <!--tel:<?php echo $this->_tpl_vars['config']['owntel']; ?>
-->
      <a href="javascript:void(0);" class="wx_ewm">微信我们</a>
      <?php if ($this->_tpl_vars['now_time'] < $this->_tpl_vars['de']['reserve_time']): ?>
      <a class="cursor buy_buy" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=shop_reserve&id=<?php echo $this->_tpl_vars['de']['id']; ?>
" >待定登记</a>
      <?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['reserve_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['sell_time'] || empty ( $this->_tpl_vars['de']['sell_time'] )): ?>
      <a class="buy_buy cursor seckill_buy" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=shop_product_detail&id=<?php echo $this->_tpl_vars['de']['id']; ?>
" >立即预定</a>
      <?php elseif (! empty ( $this->_tpl_vars['de']['sell_time'] ) && $this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['sell_time'] && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['performance_end_time']): ?>
      <a class="on cursor seckill_buy " href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=shop_product_detail&id=<?php echo $this->_tpl_vars['de']['id']; ?>
">立即购买</a>

      <?php elseif ($this->_tpl_vars['now_time'] >= $this->_tpl_vars['de']['performance_end_time']): ?>
      <a class="endon cursor " >演出结束</a>
      <?php endif; ?>

      </div>


        <div class="overlay_zw"></div>
        <div class="overlay"></div>
        <div class="weixindiag"><a class="weixinclose"></a> <img src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/images/wx_wm3.jpg" width="235" height="235" alt="" /></div>
        <div class="zwdiag"> <img src="<?php echo $this->_tpl_vars['de']['spot_detail']['seat_m_pic']; ?>
" width="100%" alt="" /></div>


        <style>
    .g-ft{margin-bottom:50px;}

    .weixindiag{position:absolute;height:auto;z-index:90001;padding:1px; display:none; width:235px; background-color:none;}
    .weixindiag img{ border-radius:5px;}
    .weixinclose{background:url("<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/images/weixinclose.png") no-repeat; width:38px; height:38px; display:inline-block; margin-bottom:-50px; cursor:pointer; margin-bottom:-38px; z-index:999; position:absolute;right:-18px; top:-18px;}
    .overlay{background-color:#252525;position:absolute;z-index:90000;left:0;top:0;width:100%;height:100%;opacity:0.7;filter: alpha(opacity=70);-moz-opacity: 0.5; display:none;}

    .overlay_zw{background-color:#000;position:absolute;z-index:90000;left:0;top:0;width:100%;height:100%;opacity:1; display:none;}

    .zwdiag{position:absolute;height:auto;z-index:90001; display:none; width:100%; height:auto; background-color:none;}
    .zwclose{background:url("<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/images/weixinclose.png") no-repeat; width:38px; height:38px; display:inline-block; margin-bottom:-50px; cursor:pointer; margin-bottom:-38px; z-index:999; position:absolute;right:-18px; top:-18px;}

</style>


        <script type="application/javascript">
            $(function(){
                $(".wx_ewm").click(function(){
                    $(".overlay").css({display:"block",height:$(document).height()});
                    $(".weixindiag").css({
                        left:($("body").width()-$(".weixindiag").width())/2+"px",
                        top:($(window).height()-$(".weixindiag").height())/2+$(window).scrollTop()+"px",
                        display:"block"
                    });
                });

                $(".weixinclose").click(function(){
                    $(".overlay,.weixindiag").css("display","none");
                    return false;
                });


                $(".zwt_show").click(function(){
                    $(".overlay_zw").css({display:"block",height:$(document).height()});
                    $(".zwdiag").css({
                        left:($("body").width()-$(".zwdiag").width())/2+"px",
                        top:($(window).height()-$(".zwdiag").height())/2+$(window).scrollTop()+"px",
                        display:"block"
                    });
                });

                $(".overlay_zw").click(function(){
                    $(".overlay_zw,.zwdiag").css("display","none");
                    return false;
                });


            });

            function lxfEndtime() {

                $(".exe_time").each(function() {
                    var lxfday = $(this).attr("lxfday");//用来判断是否显示天数的变量
                    //var endtime = new Date($(this).attr("endtime")).getTime();//取结束日期(毫秒值)
                    var endtime = $(this).attr("endtime") * 1000;
                    var nowtime = new Date().getTime(); //今天的日期(毫秒值)
                    var youtime = endtime - nowtime;//还有多久(毫秒值)
                    var seconds = youtime / 1000;
                    var minutes = Math.floor(seconds / 60);
                    var hours = Math.floor(minutes / 60);
                    var days = Math.floor(hours / 24);
                    var CDay = days;
                    var CHour = DD(hours % 24);
                    var AHour = DD(hours % 24);
                    var CMinute = DD(minutes % 60);
                    var CSecond = DD(Math.floor(seconds % 60));//"%"是取余运算，可以理解为60进一后取余数，然后只要余数。
                    if (endtime <= nowtime) {
                        $(this).html("");//如果结束日期小于当前日期就提示过期啦
                        //$("#projectStatusDescn").hide();
                       // window.location.reload();
                        $(".modue_mill").hide();
                        $(".seckill_buy").attr("href","<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=shop_product_detail&id=<?php echo $this->_tpl_vars['de']['id']; ?>
").removeClass("seckill_kill");
                    } else {
                        $(".seckill_buy").attr("href","javascript:void(0);").addClass("seckill_kill");

                        if (days < 1) {
                            $(this).html( '<span class="times">' + AHour + '</span><span class="time_title">时</span>'+ '<span class="times">' + CMinute + '</span><span class="time_title">分</span>' + '<span class="times">' + CSecond + '</span><span class="time_title">秒</span>');   //输出没有天数的数据
                        } else {
                            $(this).html( '<span class="times">' + days + '</span><span class="time_title">天</span>'+ '<span class="times">' + CHour + '</span><span class="time_title">时</span>'+ '<span class="times">' + CMinute + '</span><span class="time_title">分</span>' + '<span class="times">' + CSecond + '</span><span class="time_title">秒</span>');   //输出有天数的数据
                        }
                    }
                });
                setTimeout("lxfEndtime()", 1000);
            }

            function DD(i) {
                if (i < 10) {
                    i = '0' + i;
                }
                return i;
            }
            <?php if ($this->_tpl_vars['de']['is_skill'] == 1 && $this->_tpl_vars['now_time'] <= $this->_tpl_vars['de']['seckill_time']): ?>
            $(function() {
                lxfEndtime();
            });
            <?php endif; ?>

        </script>



